﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Domain.Entities;

namespace _8Group.MES.Model.PRO生产管理
{
    /// <summary>
    /// 生产报工记录表
    /// </summary>
    public class Pro_Feedback : Entity<int>
    {

        /// <summary>
        ///  - 报工类型
        /// </summary>
        public string? FeedbackType { get; set; }

        /// <summary>
        /// - 报工单编号
        /// </summary>
        public string? FeedbackCode { get; set; }

        /// <summary>
        ///  - 工作站 ID
        /// </summary>
        public int WorkstationId { get; set; }

        /// <summary>
        /// - 工作站编号
        /// </summary>
        public string? WorkstationCode { get; set; }

        /// <summary>
        /// 工作站名称
        /// </summary>
        public string? WorkstationName { get; set; }

        /// <summary>
        /// - 生产工单 ID
        /// </summary>
        public int WorkorderId { get; set; }

        /// <summary>
        ///  生产工单编码
        /// </summary>
        public string? WorkorderCode { get; set; }

        /// <summary>
        /// - 生产工单名称
        /// </summary>
        public string? WorkorderName { get; set; }

        /// <summary>
        ///  生产任务 ID
        /// </summary>
        public int TaskId { get; set; }

        /// <summary>
        ///生产任务编码
        /// </summary>
        public string? TaskCode { get; set; }

        /// <summary>
        ///  产品 ID
        /// </summary>
        public int ItemId { get; set; }

        /// <summary>
        ///   物料编码
        /// </summary>
        public string? ItemCode { get; set; }

        /// <summary>
        ///  物料名称
        /// </summary>
        public string? ItemName { get; set; }

        /// <summary>
        ///  规格型号
        /// </summary>
        public string? Specification { get; set; }

        /// <summary>
        ///  单位
        /// </summary>
        public string? UnitOfMeasure { get; set; }

        /// <summary>
        ///  排产数量
        /// </summary>
        public double Quantity { get; set; }

        /// <summary>
        ///  本次报工数量
        /// </summary>
        public double QuantityFeedback { get; set; }

        /// <summary>
        ///  合格数量
        /// </summary>
        public double QuantityQualified { get; set; }

        /// <summary>
        ///  不合格数量
        /// </summary>
        public double QuantityUnqualified { get; set; }

        /// <summary>
        ///  待检验数量
        /// </summary>
        public double QuantityUncheck { get; set; }

        /// <summary>
        /// 报工人员
        /// </summary>
        public string? UserName { get; set; }

        /// <summary>
        ///  人员名称
        /// </summary>
        public string? NickName { get; set; }

        /// <summary>
        /// 报工途径
        /// </summary>
        public string? FeedbackChannel { get; set; }

        /// <summary>
        ///  报工时间
        /// </summary>
        public DateTime? FeedbackTime { get; set; }

        /// <summary>
        ///  录入人员
        /// </summary>
        public string? RecordUser { get; set; }

        /// <summary>
        ///  状态
        /// </summary>
        public string? Status { get; set; }

        //  备注
        public string? Remark { get; set; }


        /// <summary>
        /// - 创建人
        /// </summary>
        public string? CreateBy { get; set; }

        /// <summary>
        ///  创建时间
        /// </summary>
        public DateTime? CreateTime { get; set; }

        /// <summary>
        ///  更新人
        /// </summary>
        public string? UpdateBy { get; set; }

        /// <summary>
        /// 更新时间
        /// </summary>
        public DateTime? UpDateTime { get; set; }
    }
}
